package com.hxb.api.entity;

/**
 * API调用日志
 * 
 * @author neo
 *
 */
public class ApiLog {
		
		/**
		 * 主键
		 */
		private long id;
		/**
		 * 接口ID
		 */
		private int apiId;
		/**
		 * 接口名称
		 */
		private String apiName;
		/**
		 * 接口地址
		 */
		private String apiUrl;
		/**
		 * 客户端IP，可能来源于浏览器、APP、应用程序
		 */
		private String ipAddr;
		/**
		 * 调用时间
		 */
		private String accessTime;
		/**
		 * 总共耗时 = serverCostTime + ajaxCostTime
		 */
		private int totalCostTime;
		/**
		 * 服务端耗时,代理服务器RequestDispacherServlet—>目标服务器
		 */
		private int serverCostTime;
		/**
		 * AJAX耗时,客户端—>代理服务器RequestDispacherServlet
		 */
		private int ajaxCostTime;
		
		public long getId() {
			return id;
		}
		public void setId(long id) {
			this.id = id;
		}
		public int getApiId() {
			return apiId;
		}
		public void setApiId(int apiId) {
			this.apiId = apiId;
		}
		public String getApiName() {
			return apiName;
		}
		public void setApiName(String apiName) {
			this.apiName = apiName;
		}
		public String getApiUrl() {
			return apiUrl;
		}
		public void setApiUrl(String apiUrl) {
			this.apiUrl = apiUrl;
		}
		public String getIpAddr() {
			return ipAddr;
		}
		public void setIpAddr(String ipAddr) {
			this.ipAddr = ipAddr;
		}
		public String getAccessTime() {
			return accessTime;
		}
		public void setAccessTime(String accessTime) {
			this.accessTime = accessTime;
		}
		public int getTotalCostTime() {
			return totalCostTime;
		}
		public void setTotalCostTime(int totalCostTime) {
			this.totalCostTime = totalCostTime;
		}
		public int getServerCostTime() {
			return serverCostTime;
		}
		public void setServerCostTime(int serverCostTime) {
			this.serverCostTime = serverCostTime;
		}
		public int getAjaxCostTime() {
			return ajaxCostTime;
		}
		public void setAjaxCostTime(int ajaxCostTime) {
			this.ajaxCostTime = ajaxCostTime;
		}
		
}
